<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>{zz $askData.content}-后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	
	<link rel="stylesheet" href="./Public/Home/Css/question.css" />
	
<!--头部开始-->	
	{zz include file="../Common/header.html"}
<!--头部结束-->
<script type="text/javascript" src="./Public/Home/Js/question.js"></script>
	<!--面包屑导航开始-->
<div id='location'>
		<a href="./index.php?c=List&cid=0">全部分类</a>
		<!--面包屑开始-->
		{zz section loop=$fatherCate name=nav}
			{zz if $smarty.section.nav.last}
			&gt;&nbsp;{zz $fatherCate[nav].title}&nbsp;&nbsp;			
			{zz else}
			&gt;&nbsp;<a href="index.php?c=List&cid={zz $fatherCate[nav].cid}">{zz $fatherCate[nav].title}</a>&nbsp;&nbsp;
			{zz /if}
		{zz /section}
		<!--面包屑结束-->
</div>
<!--面包屑导航结束-->

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state {zz if $askData.solve==0} wait {zz /if}'></div>
					<div class='answer'>
						<p class='ans-title'>{zz $askData.content}
							<b class='point'>{zz $askData.reward}</b>
						</p>
					</div>
					<ul>
						<li><a href="">{zz $askData.username}</a></li>
						<li><i class='level lv1' title='Level 1'></i></li>
						<li>{zz $askData.time|date_format:'%Y-%m-%d'}</li>
				
					</ul>
					<!--中间提问-->
					{zz if $smarty.session.uname and $smarty.session.uid and $smarty.session.uid !=$askData.uid and $askData.solve == 0}
					<div class='ianswer'>
						<form action="index.php?c=Ask&a=Up" method='POST'>
							<p>我来回答</p>
							<textarea name="content"></textarea>
							<input type="hidden" name='asid' value='{zz $smarty.get.asid}'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
				{zz /if}
				{zz if $acceptData.a.accept==1}	
					<!-- 满意回答 -->
					<div class='ans-right'>
						<p class='title'><i></i>满意回答<span></span></p>
						<p class='ans-cons'>{zz $acceptData.content}</p>
						<dl>
							<dt>
								<a href=""><img src="./Public/Home/Images/noface.gif" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href=""></a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>20%</dd>
						</dl>
					</div>
				
					<!-- 满意回答 -->
				{zz /if}	
				</div>

				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong>{zz $askData.answer}</strong> 条回答</p>
					<ul>
					{zz foreach from=$answeData item=v}	
					    <li>
							<div class='face'>
								<a href="">
									<img src="{zz $v.face}" width='48' height='48'/>
								{zz $v.username}</a>
							</div>
							<div class='cons blue'>
								<p>{zz $v.content}<span style='color:#888;font-size:12px'>&nbsp;&nbsp;({zz $v.time|date_format:'%Y-%m-%d'})</span></p>
							</div>
					<!--采纳判断，1.是没有最佳答案的，必须是自己发的问题才能看见采纳-->		
					<!--{zz if $acceptData.accept==0 && $smarty.session.uid == $askData.uid}-->
								<a href="index.php?c=ask&asid={zz $smarty.get.asid}&cid={zz $smarty.get.cid}&a=accept" class='adopt-btn'>采纳</a>
					<!--{zz /if}-->
					<!--采纳判断结束-->
						</li>
				{zz /foreach}	
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>	
						
	<!--待解决问题循环1.必须是未解决的相关分类问题 2.排出自己发的-->
	{zz section loop=$noasksqlData name=top }
			{zz if $noasksqlData[top].asid!==$smarty.get.asid}
						<tr>					
							<td class='t1'><a href="index.php?c=ask&asid={zz $noasksqlData[top].asid}&cid={zz $noasksqlData[top].cid}">{zz $noasksqlData[top].content}</a></td>
							<td>{zz $noasksqlData[top].answer}&nbsp;回答</td>
							<td>{zz $noasksqlData[top].time|date_format:'%Y-%m-%d '}</td>							
						</tr>
			{zz /if}			
	{zz /section}
					</table>
				</div>
			</div>
<!--右侧开始-->		
{zz include file="../Common/right.html"}
<!--右侧结束-->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!--底部开始-->	
{zz include file="../Common/footer.html"}
<!--底部结束-->